﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Powerpi.Models
{
    public class ModifyPwdViewModel
    {
        [Required(ErrorMessage = "账号不能为空")]
        public string Account { get; set; }
        [Required(ErrorMessage = "密码不能为空")]
        public string Password { get; set; }

        [Required(ErrorMessage = "新密码不能为空")]
        public string NewPassword { get; set; }
        [Compare("NewPassword", ErrorMessage = "确认密码不能为空")]
        public string ConfirmPassword { get; set; }
    }
}
